package yunquan.wang.modules.base.entity;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import yunquan.wang.base.domain.IdEntity;
@Entity
@Table(name = "BASE_REPORT")
public class Report extends IdEntity {
	public enum SqlType{
		SQL,JPA
	}
	private String name;//名称，国际化
	private	String templatePath;//报表路径
	private	String templateSrc;//报表源文件
	private	String sqlString;//SQL
	private	String sqlType;//SQL 类型，SQL,JPA
	   @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "report")
	private	List<ReportParameter> reportParameters;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTemplatePath() {
		return templatePath;
	}
	public void setTemplatePath(String templatePath) {
		this.templatePath = templatePath;
	}
	public String getTemplateSrc() {
		return templateSrc;
	}
	public void setTemplateSrc(String templateSrc) {
		this.templateSrc = templateSrc;
	}
 
	public String getSqlString() {
		return sqlString;
	}
	public void setSqlString(String sqlString) {
		this.sqlString = sqlString;
	}
	public String getSqlType() {
		return sqlType;
	}
	public void setSqlType(String sqlType) {
		this.sqlType = sqlType;
	}
	public List<ReportParameter> getReportParameters() {
		return reportParameters;
	}
	public void setReportParameters(List<ReportParameter> reportParameters) {
		this.reportParameters = reportParameters;
	}
	
}
